<template>
  <div class="">
    <h1>首页</h1>
    <p>这是首页里面的内容</p>
    <router-link to="/home/one">one</router-link>
    <router-link to="/home/two">two</router-link>
    <router-view></router-view>
  </div>
</template>

<script>
import router from "@/router";

export default {
  components: { router },
  mounted() {
    document.title = "首页";
  },
  created(){
    console.log("home已经创建");
  },
  destroyed(){
    console.log("home已经被销毁");
  }
};
</script>

<style></style>
